.class Lcom/melesta/engine/EngineGLSurfaceView$1;
.super Ljava/lang/Object;
.source "EngineGLSurfaceView.java"

# interfaces
.implements Landroid/opengl/GLSurfaceView$EGLConfigChooser;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/melesta/engine/EngineGLSurfaceView;->initView()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/melesta/engine/EngineGLSurfaceView;


# direct methods
.method constructor <init>(Lcom/melesta/engine/EngineGLSurfaceView;)V
    .locals 0
    .parameter

    .prologue
    .line 62
    iput-object p1, p0, Lcom/melesta/engine/EngineGLSurfaceView$1;->this$0:Lcom/melesta/engine/EngineGLSurfaceView;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public chooseConfig(Ljavax/microedition/khronos/egl/EGL10;Ljavax/microedition/khronos/egl/EGLDisplay;)Ljavax/microedition/khronos/egl/EGLConfig;
    .locals 13
    .parameter "egl"
    .parameter "display"

    .prologue
    const/4 v8, 0x0

    const/4 v4, 0x1

    .line 66
    new-array v3, v4, [Ljavax/microedition/khronos/egl/EGLConfig;

    .line 67
    .local v3, configs:[Ljavax/microedition/khronos/egl/EGLConfig;
    new-array v5, v4, [I

    .line 69
    .local v5, num_config:[I
    const/4 v12, 0x0

    .line 71
    .local v12, check:Z
    const/4 v0, 0x5

    new-array v2, v0, [I

    fill-array-data v2, :array_0

    .line 73
    .local v2, configSpec:[I
    const/4 v0, 0x2

    new-array v0, v0, [I

    fill-array-data v0, :array_1

    invoke-interface {p1, p2, v0}, Ljavax/microedition/khronos/egl/EGL10;->eglInitialize(Ljavax/microedition/khronos/egl/EGLDisplay;[I)Z

    move-result v12

    .line 75
    if-nez v12, :cond_1

    .line 86
    :cond_0
    :goto_0
    return-object v8

    :cond_1
    move-object v0, p1

    move-object v1, p2

    .line 78
    invoke-interface/range {v0 .. v5}, Ljavax/microedition/khronos/egl/EGL10;->eglChooseConfig(Ljavax/microedition/khronos/egl/EGLDisplay;[I[Ljavax/microedition/khronos/egl/EGLConfig;I[I)Z

    move-result v12

    .line 79
    if-nez v12, :cond_2

    move-object v6, p1

    move-object v7, p2

    move-object v9, v3

    move v10, v4

    move-object v11, v5

    .line 81
    invoke-interface/range {v6 .. v11}, Ljavax/microedition/khronos/egl/EGL10;->eglChooseConfig(Ljavax/microedition/khronos/egl/EGLDisplay;[I[Ljavax/microedition/khronos/egl/EGLConfig;I[I)Z

    move-result v12

    .line 82
    if-eqz v12, :cond_0

    .line 86
    :cond_2
    const/4 v0, 0x0

    aget-object v8, v3, v0

    goto :goto_0

    .line 71
    nop

    :array_0
    .array-data 0x4
        0x25t 0x30t 0x0t 0x0t
        0x10t 0x0t 0x0t 0x0t
        0x26t 0x30t 0x0t 0x0t
        0x8t 0x0t 0x0t 0x0t
        0x38t 0x30t 0x0t 0x0t
    .end array-data

    .line 73
    :array_1
    .array-data 0x4
        0x1t 0x0t 0x0t 0x0t
        0x0t 0x0t 0x0t 0x0t
    .end array-data
.end method
